<%= link_to 'Nova marca', :action => 'new' %>

<table>
  <tr>
  <% for column in Marca.content_columns %>
    <th><%= column.human_name %></th>
  <% end %>
  </tr>
  
<% for marca in @marcas %>
  <tr>
  <% for column in Marca.content_columns %>
    <td><%=h marca.send(column.name) %></td>
  <% end %>
    <td><%= link_to 'Editar', :action => 'edit', :id => marca %></td>
    <td><%= link_to 'Remover', { :action => 'destroy', :id => marca }, :confirm => 'Tem certeza?', :method => :post %></td
  </tr>
<% end %>
</table>

<%= link_to 'Anterior <<<', { :page => @marca_pages.current.previous } if @marca_pages.current.previous %>
<%= link_to '>>> Próxima', { :page => @marca_pages.current.next } if @marca_pages.current.next %> 
